
all: build/interplanetarycommerce.lua

clean:
	rm -f build/interplanetarycommerce.lua
	rm -f build/cli-game.lua

build/interplanetarycommerce.lua: header.lua constants.lua space-trader.lua tic80-loop.lua data.lua
	echo "Building interplanetarycommerce.lua"
	mkdir -p build
	cat header.lua constants.lua space-trader.lua tic80-loop.lua data.lua > build/interplanetarycommerce.lua

install:
	cp build/interplanetarycommerce.lua ~/.local/share/com.nesbox.tic/TIC-80/interplanetarycommerce.lua

cli: build/cli-game.lua

build/cli-game.lua: constants.lua space-trader.lua cli-io.lua
	echo "Building cli-game.lua"
	mkdir -p build
	cat constants.lua space-trader.lua cli-io.lua > build/cli-game.lua
